package com.vdf.sisconsolid.controller;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;

import com.vdf.sisconsolid.persistencemodule.dao.NetDao;
import com.vdf.sisconsolid.persistencemodule.dto.KeyValueBean;
import com.vdf.sisconsolid.rest.requestresponsedata.ReqRespData;
import com.vdf.sisconsolid.rest.requestresponsedata.RequestAndRespondHandler;

public class NetController {

	private static Logger log = Logger.getLogger(NetController.class);
	
	public static Map<String, Object> processGetNets() {
		
		log.info("Into processGetNets");
		List<KeyValueBean> netBeanList = new NetDao().getNetList();
		log.info("netBeanList size: " + netBeanList.size());
		return RequestAndRespondHandler.getResponseRest(true,
				ReqRespData.data.toString(), "Loaded cets",
				netBeanList);
	}

}
